#include "homepage.h"
#include "logdia.h"
#include <QApplication>


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // 加载字体文件
        int fontId = QFontDatabase::addApplicationFont(":/new/prefix1/fonts/AlimamaShuHeiTi-Bold.ttf");
        if (fontId != -1) {
            QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);
            if (!fontFamilies.isEmpty()) {
                QString fontFamily = fontFamilies.at(0);
                QFont font(fontFamily);
                // 设置应用程序的全局字体
                a.setFont(font);
            }
        }
//    HomePage w;
//    w.show();
    // 显示 logDia 窗口
    logDia logDialog;
    logDialog.show();

    return a.exec();
}
